package com.cloud.cmt.cmtsso.mapper;

import com.cloud.cmt.cmtsso.base.MyMapper;
import com.cloud.cmt.cmtsso.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * User: wcy
 * Date: 2017/9/5
 * Time: 18:06
 */
@Repository
public interface UserMapper extends MyMapper<UserInfo> {

    /**通过username查找用户信息;*/
    @Select("select * from user_info where user_name = '${username}'")
    public UserInfo findByUsername(@Param("username")String username);
}
